//JavaScript Framework 2.0 Code
try {
	Type.registerNamespace('com.yonyou.ncmm_pac_pda.BusinessSettingPageController');
	com.yonyou.ncmm_pac_pda.BusinessSettingPageController = function() {
		com.yonyou.ncmm_pac_pda.BusinessSettingPageController.initializeBase(this);
		this.initialize();
	}

	function com$yonyou$ncmm_pac_pda$BusinessSettingPageController$initialize() {

	}

	//UI加载时，如果cache里已经有默认值，则显示出来
	function onPageLoad(sender, args) {
		var stockorg = $cache.read("defaultstockorg") ? $cache.read("defaultstockorg") : "";
		if(stockorg != "") {
			stockorg = $stringToJSON(stockorg);
			var stockvos = NCMMDBUtil.getVOsByPK(StockorgVO, "pk_stockorg", stockorg["pk_stockorg"]);
			var stockvo = null;
			if(stockvos) {
				stockvo = stockvos[0];
			}
			if(stockvo) {
				$ctx.put("stockorg", NCMMPubUtil.htmlspecialchars2UI(stockvo["name"]));
				$ctx.dataBind();
			}
		}

		var stordoc = $cache.read("defaultstordoc") ? $cache.read("defaultstordoc") : "";
		if(stordoc != "") {
			stordoc = $stringToJSON(stordoc);
			var stordocvos = NCMMDBUtil.getVOsByPK(StordocVO, "pk_stordoc", stordoc["pk_stordoc"]); //typeof(stordocvo) == "object"
			var stordocvo = null;
			if(stordocvos) {
				stordocvo = stordocvos[0];
			}

			if(stordocvo) {
				$ctx.put("stordoc", NCMMPubUtil.htmlspecialchars2UI(stordocvo["name"]));
				$ctx.dataBind();
			}
		}
		var waitingInRack= $cache.read("defaultWaitingInRack") ? $cache.read("defaultWaitingInRack") : "";
		if(waitingInRack  != "") {
			waitingInRack  = $stringToJSON(waitingInRack);
			var rackvos = NCMMDBUtil.getVOsByPK(RackVO, "pk_rack", waitingInRack["pk_rack"]);
			var rackvo = null;
			if(rackvos ) {
				rackvo = rackvos [0];
			}

			if(rackvo) {
				$ctx.put("WaitingInRack", NCMMPubUtil.htmlspecialchars2UI(rackvo["name"]));
				$ctx.dataBind();
			}
		}
		
		var stockUpRack= $cache.read("defaultStockUpRack") ? $cache.read("defaultStockUpRack") : "";
		if(stockUpRack  != "") {
			stockUpRack  = $stringToJSON(stockUpRack);
			var rackvos = NCMMDBUtil.getVOsByPK(RackVO, "pk_rack", stockUpRack["pk_rack"]);
			var rackvo = null;
			if(rackvos ) {
				rackvo = rackvos [0];
			}

			if(rackvo) {
				$ctx.put("StockUpRack", NCMMPubUtil.htmlspecialchars2UI(rackvo["name"]));
				$ctx.dataBind();
			}
		}
		
		var default4dbilltype = $cache.read("default4dbilltype") ? $cache.read("default4dbilltype") : "";
		if(default4dbilltype != "") {
			default4dbilltype = $stringToJSON(default4dbilltype);
			var default4dbilltypevos = NCMMDBUtil.getVOsByPK(BilltypeVO, "pk_billtypeid", default4dbilltype["pk_billtypeid"]); //typeof(stordocvo) == "object"
			var default4dbilltypevo = null;
			if(default4dbilltypevos) {
				default4dbilltypevo = default4dbilltypevos[0];
			}

			if(default4dbilltypevo) {
				$ctx.put("4dbilltype", NCMMPubUtil.htmlspecialchars2UI(default4dbilltypevo["name"]));
				$ctx.dataBind();
			}
		}
		var default46billtype = $cache.read("default46billtype") ? $cache.read("default46billtype") : "";
		if(default46billtype != "") {
			default46billtype = $stringToJSON(default46billtype);
			var default46billtypevos = NCMMDBUtil.getVOsByPK(BilltypeVO, "pk_billtypeid", default46billtype["pk_billtypeid"]); //typeof(stordocvo) == "object"
			var default46billtypevo = null;
			if(default46billtypevos) {
				default46billtypevo = default46billtypevos[0];
			}

			if(default46billtypevo) {
				$ctx.put("46billtype", NCMMPubUtil.htmlspecialchars2UI(default46billtypevo["name"]));
				$ctx.dataBind();
			}
		}
		var default4Abilltype = $cache.read("default4Abilltype") ? $cache.read("default4Abilltype") : "";
		if(default4Abilltype != "") {
			default4Abilltype = $stringToJSON(default4Abilltype);
			var default4Abilltypevos = NCMMDBUtil.getVOsByPK(BilltypeVO, "pk_billtypeid", default4Abilltype["pk_billtypeid"]); //typeof(stordocvo) == "object"
			var default4Abilltypevo = null;
			if(default4Abilltypevos) {
				default4Abilltypevo = default4Abilltypevos[0];
			}

			if(default4Abilltypevo) {
				$ctx.put("4Abilltype", NCMMPubUtil.htmlspecialchars2UI(default4Abilltypevo["name"]));
				$ctx.dataBind();
			}
		}
		var default4Ibilltype = $cache.read("default4Ibilltype") ? $cache.read("default4Ibilltype") : "";
		if(default4Ibilltype != "") {
			default4Ibilltype = $stringToJSON(default4Ibilltype);
			var default4Ibilltypevos = NCMMDBUtil.getVOsByPK(BilltypeVO, "pk_billtypeid", default4Ibilltype["pk_billtypeid"]); //typeof(stordocvo) == "object"
			var default4Ibilltypevo = null;
			if(default4Ibilltypevos) {
				default4Ibilltypevo = default4Ibilltypevos[0];
			}

			if(default4Ibilltypevo) {
				$ctx.put("4Ibilltype", NCMMPubUtil.htmlspecialchars2UI(default4Ibilltypevo["name"]));
				$ctx.dataBind();
			}
		}
		var default4Hbilltype = $cache.read("default4Hbilltype") ? $cache.read("default4Hbilltype") : "";
		if(default4Hbilltype != "") {
			default4Hbilltype = $stringToJSON(default4Hbilltype);
			var default4Hbilltypevos = NCMMDBUtil.getVOsByPK(BilltypeVO, "pk_billtypeid", default4Hbilltype["pk_billtypeid"]); //typeof(stordocvo) == "object"
			var default4Hbilltypevo = null;
			if(default4Hbilltypevos) {
				default4Hbilltypevo = default4Hbilltypevos[0];
			}

			if(default4Hbilltypevo) {
				$ctx.put("4Hbilltype", NCMMPubUtil.htmlspecialchars2UI(default4Hbilltypevo["name"]));
				$ctx.dataBind();
			}
		}
		var default49billtype = $cache.read("default49billtype") ? $cache.read("default49billtype") : "";
		if(default49billtype != "") {
			default49billtype = $stringToJSON(default49billtype);
			var default49billtypevos = NCMMDBUtil.getVOsByPK(BilltypeVO, "pk_billtypeid", default49billtype["pk_billtypeid"]); //typeof(stordocvo) == "object"
			var default49billtypevo = null;
			if(default49billtypevos) {
				default49billtypevo = default49billtypevos[0];
			}

			if(default49billtypevo) {
				$ctx.put("49billtype", NCMMPubUtil.htmlspecialchars2UI(default49billtypevo["name"]));
				$ctx.dataBind();
			}
		}
		var default4Rbilltype = $cache.read("default4Rbilltype") ? $cache.read("default4Rbilltype") : "";
		if(default4Rbilltype != "") {
			default4Rbilltype = $stringToJSON(default4Rbilltype);
			var default4Rbilltypevos = NCMMDBUtil.getVOsByPK(BilltypeVO, "pk_billtypeid", default4Rbilltype["pk_billtypeid"]); //typeof(stordocvo) == "object"
			var default4Rbilltypevo = null;
			if(default4Rbilltypevos) {
				default4Rbilltypevo = default4Rbilltypevos[0];
			}

			if(default4Rbilltypevo) {
				$ctx.put("4Rbilltype", NCMMPubUtil.htmlspecialchars2UI(default4Rbilltypevo["name"]));
				$ctx.dataBind();
			}
		}
		var default4Kbilltype = $cache.read("default4Kbilltype") ? $cache.read("default4Kbilltype") : "";
		if(default4Kbilltype != "") {
			default4Kbilltype = $stringToJSON(default4Kbilltype);
			var default4Kbilltypevos = NCMMDBUtil.getVOsByPK(BilltypeVO, "pk_billtypeid", default4Kbilltype["pk_billtypeid"]); //typeof(stordocvo) == "object"
			var default4Kbilltypevo = null;
			if(default4Kbilltypevos) {
				default4Kbilltypevo = default4Kbilltypevos[0];
			}

			if(default4Kbilltypevo) {
				$ctx.put("4Kbilltype", NCMMPubUtil.htmlspecialchars2UI(default4Kbilltypevo["name"]));
				$ctx.dataBind();
			}
		}
		var default4Bbilltype = $cache.read("default4Bbilltype") ? $cache.read("default4Bbilltype") : "";
		if(default4Bbilltype != "") {
			default4Bbilltype = $stringToJSON(default4Bbilltype);
			var default4Bbilltypevos = NCMMDBUtil.getVOsByPK(BilltypeVO, "pk_billtypeid", default4Bbilltype["pk_billtypeid"]); //typeof(stordocvo) == "object"
			var default4Bbilltypevo = null;
			if(default4Bbilltypevos) {
				default4Bbilltypevo = default4Bbilltypevos[0];
			}

			if(default4Bbilltypevo) {
				$ctx.put("4Bbilltype", NCMMPubUtil.htmlspecialchars2UI(default4Bbilltypevo["name"]));
				$ctx.dataBind();
			}
		}
		var default4Jbilltype = $cache.read("default4Jbilltype") ? $cache.read("default4Jbilltype") : "";
		if(default4Jbilltype != "") {
			default4Jbilltype = $stringToJSON(default4Jbilltype);
			var default4Jbilltypevos = NCMMDBUtil.getVOsByPK(BilltypeVO, "pk_billtypeid", default4Jbilltype["pk_billtypeid"]); //typeof(stordocvo) == "object"
			var default4Jbilltypevo = null;
			if(default4Jbilltypevos) {
				default4Jbilltypevo = default4Jbilltypevos[0];
			}

			if(default4Jbilltypevo) {
				$ctx.put("4Jbilltype", NCMMPubUtil.htmlspecialchars2UI(default4Jbilltypevo["name"]));
				$ctx.dataBind();
			}
		}
		
		var default45billtype = $cache.read("default45billtype") ? $cache.read("default45billtype") : "";
		if(default45billtype != "") {
			default45billtype = $stringToJSON(default45billtype);
			var default45billtypevos = NCMMDBUtil.getVOsByPK(BilltypeVO, "pk_billtypeid", default45billtype["pk_billtypeid"]); //typeof(stordocvo) == "object"
			var default45billtypevo = null;
			if(default45billtypevos) {
				default45billtypevo = default45billtypevos[0];
			}

			if(default45billtypevo) {
				$ctx.put("45billtype", NCMMPubUtil.htmlspecialchars2UI(default45billtypevo["name"]));
				$ctx.dataBind();
			}
		}

	}

	function com$yonyou$ncmm_pac_pda$BusinessSettingPageController$evaljs(js) {
		eval(js)
	}

	// 打开仓库选择界面
	function com$yonyou$ncmm_pac_pda$BusinessSettingPageController$btnstock_onclick(sender, args) {
		var stockorg = $cache.read("defaultstockorg") ? $cache.read("defaultstockorg") : "";
		if(stockorg == "") {
			$alert("请先设置默认库存组织！");
			return;
		}

		//打开指定参照界面
		openRefPage("PDASTORDOC", "stordoc");
		
	}

	// 打开库存组织选择界面
	function com$yonyou$ncmm_pac_pda$BusinessSettingPageController$btnstockorg_onclick(sender, args) {
		//打开指定参照界面
		openRefPage("PDASTOCKORG", "stockorg");
	}

	function com$yonyou$ncmm_pac_pda$BusinessSettingPageController$btnback_onclick(sender, args) {
		$view.close();
	}

	//保存业务设置并关闭页面
	function onSaveSetting(sender, args) {
		$view.close();
	}

	// 打开参照页面
	function openRefPage(ncbillcode, ctxkey) {
		var jsonparam = {};
		getRefParam(ncbillcode, function(data) {
			jsonparam = data;
			if(jsonparam == null) {
				//			$alert("jsonparam is null!");
				return;
			}
			if(ctxkey == "4dbilltype") {
				jsonparam["wheresql"] = " where parentbilltype='4D'";
			}else if(ctxkey == "46billtype"){
			    jsonparam["wheresql"] =" where parentbilltype='46'";
			}else if(ctxkey == "4Abilltype"){
			    jsonparam["wheresql"] =" where parentbilltype='4A'";
			}else if(ctxkey == "4Ibilltype"){
			    jsonparam["wheresql"] =" where parentbilltype='4I'";
			}else if(ctxkey == "4Hbilltype"){
			    jsonparam["wheresql"] =" where parentbilltype='4H'";
			}else if(ctxkey == "49billtype"){
			    jsonparam["wheresql"] =" where parentbilltype='49'";
			}else if(ctxkey == "4Rbilltype"){
			    jsonparam["wheresql"] =" where parentbilltype='4R'";
			}else if(ctxkey == "4Kbilltype"){
			    jsonparam["wheresql"] =" where parentbilltype='4K'";
			}else if(ctxkey == "4Bbilltype"){
			    jsonparam["wheresql"] =" where parentbilltype='4B'";
			}else if(ctxkey == "4Jbilltype"){
			    jsonparam["wheresql"] =" where parentbilltype='4J'";
			}else if(ctxkey == "45billtype"){
			    jsonparam["wheresql"] =" where parentbilltype='45'";
			}else if(ncbillcode=="PDARACK"){
			    var stordoc = $cache.read("defaultstordoc");
			    jsonparam["wheresql"] =" where pk_stordoc='" + $stringToJSON(stordoc).pk_stordoc + "'";
			}
			$view.open({
				viewid: "com.yonyou.ncmm_pac_pda.RefPage", //目标页面
				isKeep: "true", //打开新页面的同时是否保留当前页面，true为保留，false为不保留
				data: jsonparam,
				callback: function() {
					var refdata = $param.getJSONObject("data");

					var queryvos = null;
					var queryvo = null;
					//if(ctxkey == "4dbilltype" || ctxkey=="46billtype"|| ctxkey=="4Abilltype"|| ctxkey=="4Ibilltype") {
					if(ctxkey.lastIndexOf("billtype")>0){	
						queryvos = NCMMDBUtil.getVOsByPK(BilltypeVO, "pk_billtypeid", refdata["pk_billtypeid"]);
						if(queryvos) {
							queryvo = queryvos[0];
						}
					} else if(ctxkey == "stockorg") {
						queryvos = NCMMDBUtil.getVOsByPK(StockorgVO, "pk_stockorg", refdata["pk_stockorg"]);
						if(queryvos) {
							queryvo = queryvos[0];
						}
					} else if(ctxkey=="WaitingInRack"||ctxkey=="StockUpRack"){
					    queryvos = NCMMDBUtil.getVOsByPK(RackVO, "pk_rack", refdata["pk_rack"]);
						if(queryvos) {
							queryvo = queryvos[0];
						}
					} else {
						queryvos = NCMMDBUtil.getVOsByPK(StordocVO, "pk_stordoc", refdata["pk_stordoc"]);
						if(queryvos) {
							queryvo = queryvos[0];
						}
					}

					if(queryvo) {
						queryvo = NCMMPubUtil.htmlspecialjson2UI(queryvo);
						$ctx.put(ctxkey, queryvo["name"]);
						$ctx.dataBind();
						$cache.write("default" + ctxkey, $jsonToString(queryvo));

						//设置了默认库存组织后，自动下载默认库存组织下的仓库
						//where pk_org='库存组织编码'
						if(ctxkey == "stockorg") {
							var condition = {
								"pk_stock": "='" + queryvo["pk_stockorg"] + "'"
							};
							//							$alert($jsonToString(condition));
							window.uploadTotal = 0;
							window.uploadSum = 0;
							window.uploadSum = window.uploadSum + 1;
							NCMMDBUtil.processDocDataFromNC2017(StordocVO, "仓库", condition, [], 0, function() {
								$cache.write("defaultstordoc", "");
								$ctx.put("stordoc", "");
								$ctx.dataBind();
							});
						}else if(ctxkey == "stordoc"){
							//清空货位数据     WaitingInRack ||StockUpRack
							$ctx.put("StockUpRack", "");
							$ctx.put("WaitingInRack", "");
							$ctx.dataBind();
							$cache.write("defaultStockUpRack", "");
							$cache.write("defaultWaitingInRack", "");
						}
					}
				}
			});

		});

	}

	//获取参照vo的vo信息
	//reftype： 外系统调用标识
	function getRefParam(reftype, callback) {
		var condition = {
			"ncbillcode": reftype
		};
		NCMMPubUtil.queryVOByConditions(AppmappingheadVO, condition, function(data) {
			var jsondata = {
				bdlistdata: eval(data)
			};
			var reftitle = (jsondata.bdlistdata)[0]["appbillname"];
			if((jsondata.bdlistdata)[0]["downloadnum"] == "" || (jsondata.bdlistdata)[0]["downloadnum"] == "0") {
				$alert("【" + reftitle + "】没有可参照的数据");
				if(callback != null && callback != undefined && typeof(callback) == 'function') {
					callback(null);
					return;
				}
			}
			var reftablename = (jsondata.bdlistdata)[0]["apptablename"]; //本地表名
			var jsonparam = {
				reftype: reftype, //外系统调用标识
				reftitle: reftitle, //元数据显示名称
				reftablename: reftablename //本地表名
			};
			if(callback != null && callback != undefined && typeof(callback) == 'function') {
				callback(jsonparam);
			}
		});
	}

	function onClearBtn(sender, args) {
		//清除缓存
		$cache.write("defaultfactory", "");
		$cache.write("defaultstockorg", "");
		$cache.write("defaultstordoc", "");
		$cache.write("default4dbilltype", "");
		$cache.write("default46billtype", "");
		$cache.write("default4Abilltype", "");
		$cache.write("default4Ibilltype", "");
		$cache.write("default4Hbilltype", "");
		$cache.write("default49billtype", "");
		$cache.write("default4Bbilltype", "");
		$cache.write("default4Jbilltype", "");
		$cache.write("default45billtype", "");
		$cache.write("default4Rbilltype", "");
		$cache.write("default4Kbilltype", "");
		$cache.write("defaultWaitingInRack", "");
		$cache.write("defaultStockUpRack", "");		
		$cache.write("enabledmodule", "");
		//清空仓库本地表记录
		NCMMDBUtil.clearAllOldData(StordocVO, null);
		//更新本地app_mappinghead表中下载记录数和下载时间
		NCMMDBUtil.updateMappingTable(StordocVO, 0, "", "0",false);
		//更新界面显示
		$ctx.put("factory", "");
		$ctx.put("stockorg", "");
		$ctx.put("stordoc", "");
		$ctx.put("4dbilltype", "");
		$ctx.put("46billtype", "");
		$ctx.put("4Abilltype", "");
		$ctx.put("4Ibilltype", "");
		$ctx.put("4Hbilltype", "");
		$ctx.put("49billtype", "");
		$ctx.put("4Bbilltype", "");
		$ctx.put("4Jbilltype", "");
		$ctx.put("45billtype", "");
		$ctx.put("4Rbilltype", "");
		$ctx.put("4Kbilltype", "");
		$ctx.put("WaitingInRack", "");
		$ctx.put("StockUpRack", "");	
		$ctx.dataBind();
	}

	function loadmenu(sender, args) {
		NCMMPubMenu.openDropDownList("button0");
	}
	/**
	 * 材料出库交易类型参照
	 * @param {Object} sender
	 * @param {Object} args
	 */
	function com$yonyou$ncmm_pac_pda$BusinessSettingPageController$btn4dbilltype_onclick(sender, args) {
		//打开指定参照界面
		openRefPage("PDABILLTYPE", "4dbilltype");
	}

function com$yonyou$ncmm_pac_pda$BusinessSettingPageController$btn46billtype_onclick(sender, args){
   //打开指定参照界面
		openRefPage("PDABILLTYPE", "46billtype");

}	
function com$yonyou$ncmm_pac_pda$BusinessSettingPageController$btn4Abilltype_onclick(sender, args){
       openRefPage("PDABILLTYPE", "4Abilltype");
}
function com$yonyou$ncmm_pac_pda$BusinessSettingPageController$btn4Ibilltype_onclick(sender, args){
      openRefPage("PDABILLTYPE", "4Ibilltype");
}
function com$yonyou$ncmm_pac_pda$BusinessSettingPageController$btn49billtype_onclick(sender, args){
       openRefPage("PDABILLTYPE", "49billtype");
}
function com$yonyou$ncmm_pac_pda$BusinessSettingPageController$btn4Hbilltype_onclick(sender, args){
       openRefPage("PDABILLTYPE", "4Hbilltype");
}
function com$yonyou$ncmm_pac_pda$BusinessSettingPageController$btn4Rbilltype_onclick(sender, args){
   openRefPage("PDABILLTYPE", "4Rbilltype");
}
function com$yonyou$ncmm_pac_pda$BusinessSettingPageController$btn4Kbilltype_onclick(sender, args){
   openRefPage("PDABILLTYPE", "4Kbilltype");
}
function com$yonyou$ncmm_pac_pda$BusinessSettingPageController$btn4Bbilltype_onclick(sender, args){
 openRefPage("PDABILLTYPE", "4Bbilltype");
}
function com$yonyou$ncmm_pac_pda$BusinessSettingPageController$btn4Jbilltype_onclick(sender, args){
 openRefPage("PDABILLTYPE", "4Jbilltype");
}
function com$yonyou$ncmm_pac_pda$BusinessSettingPageController$btnStockupRack_onclick(sender, args){
   var stockdoc = $cache.read("defaultstordoc") ? $cache.read("defaultstordoc") : "";
   if(stockdoc == "") {
	  $alert("请先设置默认仓库！");
    	return;
    }
    openRefPage("PDARACK", "StockUpRack");
    
}
function com$yonyou$ncmm_pac_pda$BusinessSettingPageController$btnWaitingInRack_onclick(sender, args){
    var stockdoc = $cache.read("defaultstordoc") ? $cache.read("defaultstordoc") : "";
		if(stockdoc == "") {
			$alert("请先设置默认仓库！");
			return;
	}
	openRefPage("PDARACK", "WaitingInRack");
}
function com$yonyou$ncmm_pac_pda$BusinessSettingPageController$btn45billtype_onclick(sender, args){
openRefPage("PDABILLTYPE", "45billtype");
}
com.yonyou.ncmm_pac_pda.BusinessSettingPageController.prototype = {
    btn45billtype_onclick : com$yonyou$ncmm_pac_pda$BusinessSettingPageController$btn45billtype_onclick,
    btnWaitingInRack_onclick : com$yonyou$ncmm_pac_pda$BusinessSettingPageController$btnWaitingInRack_onclick,
    btnStockupRack_onclick : com$yonyou$ncmm_pac_pda$BusinessSettingPageController$btnStockupRack_onclick,
    btn4Jbilltype_onclick : com$yonyou$ncmm_pac_pda$BusinessSettingPageController$btn4Jbilltype_onclick,
    btn4Bbilltype_onclick : com$yonyou$ncmm_pac_pda$BusinessSettingPageController$btn4Bbilltype_onclick,
    btn4Kbilltype_onclick : com$yonyou$ncmm_pac_pda$BusinessSettingPageController$btn4Kbilltype_onclick,
    btn4Rbilltype_onclick : com$yonyou$ncmm_pac_pda$BusinessSettingPageController$btn4Rbilltype_onclick,
    btn4Hbilltype_onclick : com$yonyou$ncmm_pac_pda$BusinessSettingPageController$btn4Hbilltype_onclick,
    btn49billtype_onclick : com$yonyou$ncmm_pac_pda$BusinessSettingPageController$btn49billtype_onclick,
    btn4Ibilltype_onclick : com$yonyou$ncmm_pac_pda$BusinessSettingPageController$btn4Ibilltype_onclick,
    btn4Abilltype_onclick : com$yonyou$ncmm_pac_pda$BusinessSettingPageController$btn4Abilltype_onclick,
    btn46billtype_onclick : com$yonyou$ncmm_pac_pda$BusinessSettingPageController$btn46billtype_onclick,
		btn4dbilltype_onclick: com$yonyou$ncmm_pac_pda$BusinessSettingPageController$btn4dbilltype_onclick,
		//  wpanelsetting_onload : com$yonyou$ncmm_pac_pda$BusinessSettingPageController$wpanelsetting_onload,
		btnback_onclick: com$yonyou$ncmm_pac_pda$BusinessSettingPageController$btnback_onclick,
		btnstockorg_onclick: com$yonyou$ncmm_pac_pda$BusinessSettingPageController$btnstockorg_onclick,
		btnstock_onclick: com$yonyou$ncmm_pac_pda$BusinessSettingPageController$btnstock_onclick,
		initialize: com$yonyou$ncmm_pac_pda$BusinessSettingPageController$initialize,
		evaljs: com$yonyou$ncmm_pac_pda$BusinessSettingPageController$evaljs
	};
	com.yonyou.ncmm_pac_pda.BusinessSettingPageController.registerClass('com.yonyou.ncmm_pac_pda.BusinessSettingPageController', UMP.UI.Mvc.Controller);
} catch(e) {
	$e(e);
}